extends BaseDlg


# Declare member variables here. Examples:
# var a = 2
# var b = "text"


# Called when the node enters the scene tree for the first time.
func _ready():
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
#	pass


func _on_Button_pressed():
	var game = load("res://tscn/game/game.tscn").instance()
	game.mode = sys.main.get_node("tile").loadMode
	sys.main.add_child(game)
	game.loadGame()
	sys.main.get_node("tile").queue_free()
	del()

func _on_Button3_pressed():
	sys.get_node("veMap").loadGame()
	sys.main.get_node("tile").queue_free()
	del()

func _on_Button4_pressed():
	sys.get_node("veTower").loadGame()
	sys.main.get_node("tile").queue_free()
	del()
